package com.yxw.springmvc.test;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by hp on 2016/7/29.
 */
@SpringBootApplication
@RestController
public class ApplicationDemo1 {
    @RequestMapping("/")
    public String index(){
        return "index";
    }

    @RequestMapping("/hello")
    public String getHello(){
        return "hello world";
    }

    public static void main(String[] args) {
        SpringApplication.run(ApplicationDemo1.class,args);
    }
}
